-- GENERATED SPELL FOR [Lindros] --


function spell0_8381(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(11975,pUnit)
pUnit:RegisterEvent('Sorts_8381', 1500, 1)
end

function spell1_8381(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20823,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8381', 3000, 1)
end

function Sorts_8381(pUnit, Event)
local choix_sorts_8381 = math.random(0, 1)
if choix_sorts_8381 == 0 then
pUnit:RegisterEvent('spell0_8381', 1, 1)
end
if choix_sorts_8381 == 1 then
pUnit:RegisterEvent('spell1_8381', 1, 1)
end
end

function mob8381_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8381', math.random(1500, 3000), 1)
end

function mob8381_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8381_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8381_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8381, 1, 'mob8381_Action')
RegisterUnitEvent(8381, 2, 'mob8381_Leave')
RegisterUnitEvent(8381, 3, 'mob8381_Kill')
RegisterUnitEvent(8381, 4, 'mob8381_Die')
